Emmanuele Bassi [Sun, 14 Feb 2021 18:00:26 +0000 (18:00 +0000)]
docs: Begin porting GtkWidget to the new format
Emmanuele Bassi [Sun, 14 Feb 2021 18:00:00 +0000 (18:00 +0000)]
doc: Port GtkConstraint to the new format
Emmanuele Bassi [Sun, 14 Feb 2021 17:59:05 +0000 (17:59 +0000)]
docs: De-indent GtkRecentInfo.get_applications() return value
Otherwise the four spaces will be treated as a pre-formatted block by
Markdown.
Emmanuele Bassi [Fri, 12 Feb 2021 00:19:41 +0000 (00:19 +0000)]
docs: Start porting GtkConstraintLayout to the new doc format
Drop the old gtk-doc'isms, and use the gi-docgen links instead.
Emmanuele Bassi [Wed, 10 Feb 2021 14:03:56 +0000 (14:03 +0000)]
docs: Add metadata preamble to GTK's content files
Emmanuele Bassi [Thu, 18 Feb 2021 12:59:09 +0000 (12:59 +0000)]
docs: Drop gtk-doc files
We don't use gtk-doc to generate our API reference, so we don't need its
files lying around any more.
Emmanuele Bassi [Wed, 10 Feb 2021 13:41:53 +0000 (13:41 +0000)]
Generate GTK API reference(s) with gi-docgen
Stop using gtk-doc, and switch to gi-docgen.
The gi-docgen tool generates API references through the introspection
data, which has various benefits:
- it does not parse C code
- it does not generate and run C code to introspect types at build time
- it does not present a different API from the one we're exporting
Additionally, gi-docgen:
- does not generate DocBook XML in order to generate HTML
- does not go through xsltproc
- parses proper Markdown
Which makes it markedly faster than gtk-doc has ever been.
Emmanuele Bassi [Wed, 10 Feb 2021 13:38:51 +0000 (13:38 +0000)]
Add gi-docgen as a subproject
While we're developing gi-docgen it's better to have it as part of our
build.
Emmanuele Bassi [Mon, 15 Feb 2021 18:02:53 +0000 (18:02 +0000)]
ci: Update the fedora-docs Docker image
Use the latest base image.
Emmanuele Bassi [Mon, 15 Feb 2021 16:43:10 +0000 (16:43 +0000)]
ci: Update the CI image for docs building
We don't use Pandoc any more, but we need a bunch of Python modules for
gi-docgen.
Emmanuele Bassi [Mon, 15 Feb 2021 00:56:35 +0000 (00:56 +0000)]
ci: Update the reference job
Emmanuele Bassi [Mon, 15 Feb 2021 16:42:07 +0000 (16:42 +0000)]
Rename base version argument in run-docker.sh
The `--base-version` argument trips up everyone. Might as well rename it
to `--version`.
Matthias Clasen [Thu, 11 Mar 2021 14:25:53 +0000 (14:25 +0000)]
Merge branch 'fix-menubutton-tooltips' into 'master'
Limit tooltip queries to the same native
Closes #3719
See merge request GNOME/gtk!3283
Matthias Clasen [Thu, 11 Mar 2021 13:56:05 +0000 (08:56 -0500)]
Limit tooltip queries to the same native
Without this, the menubuttons tooltip pops up
when hovering the popover, which is suprising
and unintended.
Fixes: #3719
Matthias Clasen [Thu, 11 Mar 2021 01:09:39 +0000 (01:09 +0000)]
Merge branch 'gdk-win32-use-window-from-point-for-master' into 'master'
GdkWin32: Fix mouse events in presence of transparent windows on the desktop
Closes #370, #417, and gimp#1082
See merge request GNOME/gtk!2800
Matthias Clasen [Tue, 9 Mar 2021 23:59:05 +0000 (23:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Fix surface transform regression
See merge request GNOME/gtk!3280
Matthias Clasen [Tue, 9 Mar 2021 22:42:59 +0000 (17:42 -0500)]
inspector: Fix surface transform regression
Ever since we added surface-to-widget transforms,
the autofading of the fps overlay did not work anymore,
since it was given the transient transform node, most
of the time.
Fix this by passing both the root of the node tree and
the node for the toplevel widget to prepare_render, and
hande the widget node to the overlays. Update the
affected overlays that need to have their positioning
adjusted.
Мирослав Николић [Tue, 9 Mar 2021 21:23:01 +0000 (21:23 +0000)]
Update Serbian translation
(cherry picked from commit
f33a2febc7df6ec9c7721361f94121c2db079057)
Benjamin Otte [Tue, 9 Mar 2021 19:11:09 +0000 (19:11 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
Wip/otte/for master
See merge request GNOME/gtk!3279
Benjamin Otte [Tue, 9 Mar 2021 18:52:59 +0000 (19:52 +0100)]
wayland: Fix memleaks when rendering with Cairo
We were leaking buffers. This wasn't caught by valgrind and friends
because it was shared memory (with the compositor), but top(1) would
instantly see memory consumption of the app and the shell go through the
roof.
Benjamin Otte [Tue, 9 Mar 2021 18:50:56 +0000 (19:50 +0100)]
wayland: Don't call _gdk_surface_update_size() all the time
We were calling _gdk_surface_update_size() every frame, even if the
window size didn't change. This would cause us to discard all cached
buffers and redraw the whole screen.
This was BAD.
Matthias Clasen [Tue, 9 Mar 2021 17:56:57 +0000 (17:56 +0000)]
Merge branch 'ngl-rect-borders' into 'master'
Speed up border rendering
See merge request GNOME/gtk!3278
Matthias Clasen [Tue, 9 Mar 2021 05:43:47 +0000 (00:43 -0500)]
nodeparser: Print debug message before child
This puts the message up top, where it can be seen,
and not at the other end of an endless tree of children.
Update tests to match.
Matthias Clasen [Tue, 9 Mar 2021 02:37:28 +0000 (21:37 -0500)]
ngl: Render simple borders simply
Use 4 color commands for uniform, rectilinear
borders. Most of our borders are rounded with
Adwaita, but there are still some of these.
Matthias Clasen [Tue, 9 Mar 2021 02:36:41 +0000 (21:36 -0500)]
gsk: Add gsk_border_node_get_uniform_color
Maintain this bit of information separately,
it will be useful in the next commit.
Benjamin Otte [Sat, 6 Mar 2021 19:44:38 +0000 (20:44 +0100)]
vulkan: Improve rounded rect clipping
Handle the case where the inner rounded rect is fully contained
within the outer rounded rect.
Benjamin Otte [Sat, 6 Mar 2021 19:43:52 +0000 (20:43 +0100)]
vulkan: Fix invalid read
Look at the right rect to compute circularness
Matthias Clasen [Tue, 9 Mar 2021 03:00:18 +0000 (03:00 +0000)]
Merge branch 'meson-override-dep' into 'master'
meson: override gtk4 dependency
See merge request GNOME/gtk!3277
Xavier Claessens [Tue, 9 Mar 2021 02:06:33 +0000 (21:06 -0500)]
meson: override gtk4 dependency
This allows applications that depends on gtk4 to build it as subproject
without hardcoding 'gtk_dep' variable name in their build definition.
Matthias Clasen [Tue, 9 Mar 2021 00:12:11 +0000 (00:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!3276
Matthias Clasen [Mon, 8 Mar 2021 23:07:18 +0000 (23:07 +0000)]
Merge branch 'bilelmoussaoui/size-request-annotations' into 'master'
g-i: update distribute_natural_allocation annotation
See merge request GNOME/gtk!3271
Matthias Clasen [Mon, 8 Mar 2021 21:04:53 +0000 (16:04 -0500)]
node-format: Small docs fixes
Matthias Clasen [Tue, 24 Nov 2020 18:42:29 +0000 (13:42 -0500)]
spinbutton: Interpret localized digits
Interpret input where the characters have numeric values.
See #3387
Matthias Clasen [Mon, 8 Mar 2021 20:20:50 +0000 (20:20 +0000)]
Merge branch 'ngl-clip-classification' into 'master'
Ngl clip classification
See merge request GNOME/gtk!3274
Matthias Clasen [Mon, 8 Mar 2021 15:03:21 +0000 (10:03 -0500)]
glsl: Make rounded rect clipping cheaper
Add early acceptance checks for non-corner cases.
Matthias Clasen [Mon, 8 Mar 2021 13:38:12 +0000 (13:38 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Revert "ngl: Remove a few redundant checks"
See merge request GNOME/gtk!3273
Matthias Clasen [Mon, 8 Mar 2021 13:10:25 +0000 (08:10 -0500)]
Revert "ngl: Remove a few redundant checks"
This reverts commit
4375f8e382ef035d970dd255f56d1a7470c1a78c.
These were not redundant after all, as pointed out by Timm.
Matthias Clasen [Mon, 8 Mar 2021 02:28:19 +0000 (21:28 -0500)]
Add some more rounded rect tests
Matthias Clasen [Sun, 7 Mar 2021 22:51:42 +0000 (17:51 -0500)]
gsk: Use clip defines in shaders
Use the NO_CLIP and RECT_CLIP defines to make
simpler shaders for these cases.
Note: This does not work yet.
Matthias Clasen [Sun, 7 Mar 2021 22:50:19 +0000 (17:50 -0500)]
ngl: Add infrastructure for clip-variants of shaders
Make ngl compile each shader three times.
Once with #define NO_CLIP 1
once with #define RECT_CLIP 1
and once as before.
Matthias Clasen [Sun, 7 Mar 2021 15:02:46 +0000 (10:02 -0500)]
ngl: Classify clips
Maintain the 'fully contained' information in the clip
stack. This will let us pick simpler shaders in the future.
Matthias Clasen [Sun, 7 Mar 2021 20:22:14 +0000 (20:22 +0000)]
Merge branch 'ebassi/iface-macros' into 'master'
Remove invalid class macros
See merge request GNOME/gtk!3270
Matthias Clasen [Sun, 7 Mar 2021 19:35:44 +0000 (14:35 -0500)]
Move gtk_rounded_rect_scale_affine to the right place
This function should live with the rest of the
GskRoundedRect code in gskroundedrect.c.
Matthias Clasen [Sun, 7 Mar 2021 20:16:04 +0000 (15:16 -0500)]
imcontext: Fix a docs mishap
Bilal Elmoussaoui [Sun, 7 Mar 2021 19:59:01 +0000 (20:59 +0100)]
g-i: update distribute_natural_allocation annotation
Matthias Clasen [Sun, 7 Mar 2021 19:46:59 +0000 (19:46 +0000)]
Merge branch 'bilelmoussaoui/gi-annotations' into 'master'
g-i: add missing since annotations for 4.2
See merge request GNOME/gtk!3268
Bilal Elmoussaoui [Sun, 7 Mar 2021 15:51:38 +0000 (16:51 +0100)]
g-i: add missing since annotations for 4.2
Matthias Clasen [Sun, 7 Mar 2021 18:43:50 +0000 (18:43 +0000)]
Merge branch 'scalable-svg' into 'master'
icons: Rename two icons which had the wrong extension
See merge request GNOME/gtk!3269
Emmanuele Bassi [Sun, 7 Mar 2021 18:34:53 +0000 (18:34 +0000)]
docs: Remove invalid macros
Emmanuele Bassi [Sun, 7 Mar 2021 18:26:31 +0000 (18:26 +0000)]
treesortable: Remove class check macro
Emmanuele Bassi [Sun, 7 Mar 2021 18:25:55 +0000 (18:25 +0000)]
orientable: Remove class macros
Emmanuele Bassi [Sun, 7 Mar 2021 18:25:07 +0000 (18:25 +0000)]
celleditable: Remove class cast check macro
Emmanuele Bassi [Sun, 7 Mar 2021 18:23:23 +0000 (18:23 +0000)]
buildable: Remove "class" macro
Emmanuel Gil Peyrot [Sun, 7 Mar 2021 17:58:57 +0000 (18:58 +0100)]
icons: Rename two icons which had the wrong extension
Fixes two warnings when opening the inspector on my PinePhone, these two
files were attempted to be loaded as PNG (as per the extension) instead
of SVG.
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Christian Hergert [Sun, 7 Mar 2021 15:59:59 +0000 (15:59 +0000)]
Merge branch 'ngl-misc-fixes' into 'master'
Ngl misc fixes
See merge request GNOME/gtk!3267
Rūdolfs Mazurs [Sun, 7 Mar 2021 15:26:09 +0000 (15:26 +0000)]
Update Latvian translation
(cherry picked from commit
1d62020a1912c410a24879922c34284f8a534e54)
Matthias Clasen [Sun, 7 Mar 2021 15:17:34 +0000 (10:17 -0500)]
ngl: Treat radial gradients like others
Handle colorstop overflow for radial gradients
the same way we do for linear and conic gradients.
Matthias Clasen [Sun, 7 Mar 2021 15:16:56 +0000 (10:16 -0500)]
ngl: Remove a few redundant checks
We bail early on invisible nodes. No need to
repeat that check in individual visit functions.
Matthias Clasen [Sun, 7 Mar 2021 14:59:57 +0000 (14:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Revert "flatpak: No need to build sassc anymore"
See merge request GNOME/gtk!3266
Matthias Clasen [Sun, 7 Mar 2021 14:04:43 +0000 (09:04 -0500)]
roundedrect: Remove unclear language from the docs
The various intersection function for rounded rects are
precise. No need to add wordy disclaimers about the handling
of the corners.
Matthias Clasen [Sat, 6 Mar 2021 21:00:03 +0000 (16:00 -0500)]
Revert "flatpak: No need to build sassc anymore"
This reverts commit
9a540841fd5c18394456a3dfcfde721a69ed4724.
Matthias Clasen [Sat, 6 Mar 2021 19:29:50 +0000 (19:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
vulkan: Add visible fallback rendering
See merge request GNOME/gtk!3264
Guillaume Bernard [Sat, 6 Mar 2021 18:49:22 +0000 (18:49 +0000)]
Update French translation
(cherry picked from commit
5b18df9b5ebe2a8786c53a62b63ba84c1a1fd3a3)
Мирослав Николић [Sat, 6 Mar 2021 18:43:30 +0000 (18:43 +0000)]
Update Serbian translation
(cherry picked from commit
b9a451423fe54e8f93fd39d8ef01f4fb835b4655)
Changwoo Ryu [Sat, 6 Mar 2021 18:11:19 +0000 (18:11 +0000)]
Update Korean translation
(cherry picked from commit
60a714a25ff40a36f969b154d04036c56dbf067f)
Jordi Mas [Sat, 6 Mar 2021 08:44:50 +0000 (09:44 +0100)]
Update Catalan translation
Benjamin Otte [Sat, 6 Mar 2021 00:35:04 +0000 (19:35 -0500)]
vulkan: Handle simple transforms in the clipping code
Requires pushing the GskTransform into the clipping code so that we
can actually look at its category.
Matthias Clasen [Fri, 5 Mar 2021 23:39:22 +0000 (18:39 -0500)]
vulkan: Add visible fallback rendering
Hook up the "Show fallback rendering" switch for Vulkan.
This brings home the sobering truth that the Vulkan renderer
is doing *all* fallback, since we switched from offset nodes
to transform nodes.
Matthias Clasen [Fri, 5 Mar 2021 20:30:54 +0000 (20:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!3263
Matthias Clasen [Thu, 4 Mar 2021 15:05:19 +0000 (10:05 -0500)]
searchentry: Typo fix
Matthias Clasen [Fri, 5 Mar 2021 20:06:20 +0000 (15:06 -0500)]
flatpak: Fix the gtk4-demo build
This was overlooked in
8e7e821033abb291391c26aa288a8.
Matthias Clasen [Fri, 5 Mar 2021 19:41:39 +0000 (19:41 +0000)]
Merge branch 'wip/exalm/window-shadow-dark-4' into 'master'
Adwaita: Use transparent black for window border in dark too
See merge request GNOME/gtk!3261
Matthias Clasen [Fri, 5 Mar 2021 19:11:36 +0000 (19:11 +0000)]
Merge branch 'wip/jimmac/fix-flatpak-build' into 'master'
Flatpak: Update build manifests
See merge request GNOME/gtk!3259
Alexander Mikhaylenko [Fri, 5 Mar 2021 17:59:25 +0000 (22:59 +0500)]
Adwaita: Use transparent black for window border in dark too
Avoid smear when the background behind the window is dark. Adjust opacity
to make it appear roughly the same as before on white background.
Matthias Clasen [Fri, 5 Mar 2021 17:17:04 +0000 (17:17 +0000)]
Merge branch 'wip/jimmac/sidebar-focus' into 'master'
Adwaita: Regular focus ring for sidebar rows
Closes #3708
See merge request GNOME/gtk!3258
Jakub Steiner [Fri, 5 Mar 2021 17:00:17 +0000 (18:00 +0100)]
Flatpak: Update build manifests
- point to the upstream repo for wayland
- disable disabling of sassc
- switch wayland from autotools to meson
Jakub Steiner [Fri, 5 Mar 2021 11:16:10 +0000 (12:16 +0100)]
Adwaita: Regular focus ring for sidebar rows
- style sidebar rows as regular items like buttons wrt focus
- define transition as part of the focus-ring(),
only animate outline related properties rather than `all`
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3708
Kukuh Syafaat [Fri, 5 Mar 2021 11:52:39 +0000 (11:52 +0000)]
Update Indonesian translation
(cherry picked from commit
e54dc87a152aa7379aa015e9fc5ea3aaa793c231)
Matthias Clasen [Fri, 5 Mar 2021 01:11:11 +0000 (01:11 +0000)]
Merge branch 'iconbrowser-fix' into 'master'
iconbrowser: fix search<>category interaction
Closes #3717
See merge request GNOME/gtk!3257
Matthias Clasen [Thu, 4 Mar 2021 21:13:46 +0000 (16:13 -0500)]
iconbrowser: fix search<>category interaction
Make search act like a separate, filtered view of
all icons. This is how it worked in gtk3, and how
it should be.
Fixes: #3717
Matthias Clasen [Thu, 4 Mar 2021 22:48:25 +0000 (22:48 +0000)]
Merge branch 'preedit-selection-fix' into 'master'
Preedit selection fix
Closes #1123
See merge request GNOME/gtk!3255
Matthias Clasen [Thu, 4 Mar 2021 19:55:40 +0000 (14:55 -0500)]
textview: Delete selection when preedit starts
This prevents confusing misrendering when the preedit text
pushes the selection text out of the rendered selection.
Fixes: #1123
Matthias Clasen [Thu, 4 Mar 2021 19:46:46 +0000 (14:46 -0500)]
textview: Send anchor with surrounding
We have the api to do it now.
Matthias Clasen [Thu, 4 Mar 2021 19:14:09 +0000 (14:14 -0500)]
text: Optimize away 0-change insertions and deletions
We can short-circuit insert and delete calls that are
not causing any change.
Matthias Clasen [Thu, 4 Mar 2021 19:49:14 +0000 (14:49 -0500)]
text: Delete selection when preedit starts
This prevents confusing misrendering when the preedit text
pushes the selection text out of the rendered selection.
Fixes: #1123
Matthias Clasen [Thu, 4 Mar 2021 19:48:28 +0000 (14:48 -0500)]
text: Send anchor with surrounding
We have the api to do it now.
Matthias Clasen [Thu, 4 Mar 2021 18:30:55 +0000 (13:30 -0500)]
imwayland: Pass anchor with surrounding
This was missing in the initial implementation since
GtkIMContext did not have it in its api, but it was
added now, so we can send the information.
Matthias Clasen [Thu, 4 Mar 2021 20:14:52 +0000 (15:14 -0500)]
immulticontext: Implement [gs]et_surrounding_with_selection
This is the recommended api, going forward.
Matthias Clasen [Thu, 4 Mar 2021 18:27:38 +0000 (13:27 -0500)]
imcontext: Add [gs]et_surrounding_with_selection
The Wayland text protocol expects to get both ends
of the selection with its surrounding call, so make
that available via GtkIMContext. We add this as new
api and vfuncs, and fall back, so that existing
implementations keep working.
Matthias Clasen [Wed, 3 Mar 2021 21:53:27 +0000 (21:53 +0000)]
Merge branch 'wip/chergert/remove-zero-suffix-array' into 'master'
ngl: remove unnecessary suffix array
See merge request GNOME/gtk!3254
Jordi Mas [Wed, 3 Mar 2021 21:31:04 +0000 (22:31 +0100)]
Update Catalan translation
Christian Hergert [Wed, 3 Mar 2021 21:03:24 +0000 (13:03 -0800)]
ngl: remove unnecessary suffix array
We didn't end up using this in the final version, so we can just delete
it and avoid MSVC issues.
Matthias Clasen [Wed, 3 Mar 2021 15:11:00 +0000 (15:11 +0000)]
Merge branch 'bilelmoussaoui/annotations-fix' into 'master'
update annotation of gtk_single_selection_get_selected_item
See merge request GNOME/gtk!3253
Bilal Elmoussaoui [Wed, 3 Mar 2021 13:07:22 +0000 (13:07 +0000)]
gtk: update annotation of gtk_single_selection_get_selected_item
Matthias Clasen [Wed, 3 Mar 2021 13:11:22 +0000 (13:11 +0000)]
Merge branch 'wip/exalm/headerbar-css' into 'master'
Header bar CSS tweaks
See merge request GNOME/gtk!3252
Alexander Mikhaylenko [Wed, 3 Mar 2021 12:35:15 +0000 (17:35 +0500)]
adwaita: Remove the nested headerbars hack
We clip the window now, it's not necessary anymore.
Alexander Mikhaylenko [Wed, 3 Mar 2021 12:33:42 +0000 (17:33 +0500)]
adwaita: Remove headerbar sheen on backdrop
It's gone from active windows since
c9807f5afed5b6a10987905eea331b926f436017,
but was still there in backdrop.
Matthias Clasen [Wed, 3 Mar 2021 12:00:37 +0000 (12:00 +0000)]
Merge branch 'label-mnemonic-fix' into 'master'
label: Fix markup parsing interactions
See merge request GNOME/gtk!3250
Matthias Clasen [Wed, 3 Mar 2021 03:30:11 +0000 (22:30 -0500)]
label: Fix markup parsing interactions
We were not handling mnemonics vs markup right
in all cases. Rewrite the _-stripping code to
do it during the link parsing, instead of as
a separate function. This avoids the issue of
stripping _ from attribute names in markup.
Add tests.
Fixes: 3706
Matthias Clasen [Tue, 2 Mar 2021 20:31:09 +0000 (20:31 +0000)]
Merge branch 'fix-glyph-serialization' into 'master'
rendernode: Fix glyph serialization
Closes #3710
See merge request GNOME/gtk!3248